//
//  OftenRunCell.m
//  Rabbit
//
//  Created 阿帕 on 2019/12/16.
//  Copyright © 2019 GCY. All rights reserved.
//

#import "OftenRunCell.h"

@interface OftenRunCell ()
@property (weak, nonatomic) IBOutlet UILabel *chufaAddressLabel;
@property (weak, nonatomic) IBOutlet UILabel *daodaAddressLabel;
@property (weak, nonatomic) IBOutlet UILabel *numberLabel;
@property (weak, nonatomic) IBOutlet UIView *bottomLine;

@end

@implementation OftenRunCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    _chufaAddressLabel.textColor = Dark_TextColor;
    _daodaAddressLabel.textColor = Dark_TextColor;
    _bottomLine.backgroundColor = BackgroundColor;
    cut(_numberLabel, 7);
}

- (void)setModel:(OftenRunModel *)model {
    _model = model;
    _chufaAddressLabel.text = _model.consignorAddress;
    _daodaAddressLabel.text = _model.consigneeAddress;
    _numberLabel.text = CJStringWithFormat(@"%ld",(long)_model.orderCount);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
